package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.base.BaseDomain;

import java.util.Date;

import cn.wolfcode.p2p.base.domain.BaseAuditDomain;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;;

/**
 * 借款审核历史纪录
 * 每一次审核都需要保存一条记录
 *
 * @author
 * @since 2018-11-29 11:41:28
 */
@Getter
@Setter
@Accessors(chain = true)
public class BidRequestAuditHistory extends BaseAuditDomain {
    public static final int PUBLISH_AUDIT = 0;
    public static final int FULL_AUDIT_1 = 1;
    public static final int FULL_AUDIT_2 = 2;
    /**
     * 所属借款对象ID
     */
    private Long bidRequestId;

    /**
     * 审核类型(发标前审核/满标一审/满标二审)
     */
    private int auditType = PUBLISH_AUDIT;

    public String getDisplayAuditType() {
        String temp = "发标前审核";
        if (auditType == FULL_AUDIT_1) {
            temp = "满标一审";
        } else if (auditType == FULL_AUDIT_2) {
            temp = "满标二审";
        }
        return temp;
    }
}